<!--
 * @Author: your name
 * @Date: 2022-04-19 03:46:02
 * @LastEditTime: 2022-04-20 09:14:21
 * @LastEditors: Please set LastEditors
 * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 * @FilePath: \2202\二阶段学习\week02\day05\src\无聊特效小蜜蜂\demo.html
-->
<meta charset="UTF-8">
<style>
body{
    background:url(001.jpg);
    background-size: 100% 100%;
}
div{
    font-size: 80px;
    position: absolute;
    left: 100px;
    top: 50px;
}
</style>
<div>🐝</div>
<script>
document.onmousemove = function(evt){
    var e = evt || window.event
    var left = e.pageX
    var top = e.pageY
    var divObj = document.querySelector('div')
    divObj.style.left = left + 'px'
    divObj.style.top = top + 'px'
}
</script>
